﻿Public Class MqttMsgText

    Private Sub MqttMsgText_Load(sender As Object, e As EventArgs) Handles Me.Load
        LabelTopic.Left = 5
        LabelQoS.Left = LabelTopic.Right + 20
        TextMsg.Left = LabelTopic.Left
        TextMsg.Top = LabelTopic.Bottom + 3
        TextMsg.Width = Me.Width - 13
        TextMsg.Height = Me.Height - LabelTime.Height - TextMsg.Top - 12
        LabelTime.Left = LabelTopic.Left
        LabelTime.Top = TextMsg.Bottom + 3
        LabelTime.Width = TextMsg.Width
    End Sub

    Private Sub MqttMsgText_Resize(sender As Object, e As EventArgs) Handles Me.Resize
        LabelTopic.Left = 5
        LabelQoS.Left = LabelTopic.Right + 20
        TextMsg.Left = LabelTopic.Left
        TextMsg.Left = LabelTopic.Left
        TextMsg.Top = LabelTopic.Bottom + 3
        TextMsg.Width = Me.Width - 13
        TextMsg.Height = Me.Height - LabelTime.Height - TextMsg.Top - 12
        LabelTime.Left = LabelTopic.Left
        LabelTime.Top = TextMsg.Bottom + 3
        LabelTime.Width = TextMsg.Width
    End Sub
End Class
